// .txt

beginzonescript;

variables;

short crime_tolerance = 2;
short last_abil;
short i;
short set_att = 0;

body;

beginstate INIT_STATE;

	set_name(63,"Shaper Conason");
	set_boss_level(63,2);
	set_level(63,30);
	
	add_range_to_group(8,13,1);
	set_boss_level(1001,2);
	set_new_abil(1001,20);
	
	add_range_to_group(54,60,1);
	set_aggression(1001,8);
	
	if (gf(100,11) > 0) {
		print_str_color("Word of your infamy has gotten here before you. You are forever marked",3);
		print_str_color("  as a foe of the Shapers.",3);
		sf(67,5,1);
		}
	if (get_sdf(67,5) > 0) {
		make_zone_hostile();
		}

	last_abil = get_current_tick();
	
	set_crime_tolerance(crime_tolerance);
	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
	// clear zone?
	if ((zone_clear(ME) == FALSE) && (get_flag(67,4) > 0)) {
		print_str_color("You have gotten close enough to see the Lethia Pass gate.",2);
		award_party_xp(100,30);
		clear_zone(ME);	
		}
	
	if ((gf(67,6) >= 15) && (get_sdf(67,5) == 0)) {
		make_zone_hostile();
		set_flag(67,5,1);
		}
		
	if ((get_crime_level() >= crime_tolerance) && (get_sdf(67,5) == 0)) {
		make_zone_hostile();
		set_flag(67,5,1);
		}

	 if (gf(67,5) == 0) {
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(63,"A visitor.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(63,"Mind the turrets.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(63,"Don't go west.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(63,"Good boy ...");
		}
	
	//if (((is_combat()) && (tick_difference(last_abil,get_current_tick()) > 0)) || ((is_group()) && (tick_difference(last_abil,get_current_tick()) > 5))) {
	//	last_abil = get_current_tick();
	//	}
break;

beginstate 10;
	if (set_att == 0) {
		set_att = 1;
		set_attitude(1001,10);
		}
break;

//	print_str("");
//	set_terrain_string_range(".",3);
//	set_terrain_string_range("The sign says - .",3);
